// import { defineStore } from "pinia";

export const useStore = defineStore('main', {
  state: () => {
    return {
      // 所有这些属性都将自动推断其类型
      counter: 0
    }
  },
  getters: {
    // doubleCount: (state) => state.counter * 2,
  },
  actions: {}
})

export const useUserStore = defineStore('user', {
  state: () => {
    return {
      // 所有这些属性都将自动推断其类型
      counter: 123
    }
  },
  getters: {},
  actions: {}
})
// const a = 1
// a()
